<template>
  <div class="swiper">
    <van-swipe :autoplay="3000" lazy-render>
      <van-swipe-item v-for="image in props.images" :key="image">
        <img :src="image.image_src" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script setup>
const props = defineProps(["images"]);
</script>

<style lang="scss" scoped>
.swiper {
  width: 100%;
  height: 18rem;
  .van-swipe-item,
  .van-swipe,
  img {
    width: 100%;
    height: 100%;
  }
}
</style>
